//覆盖一些element-ui样式

.el-breadcrumb__inner, .el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;
    .el-tag {
      margin-right: 0;
    }
  }
}

//文章页textarea修改样式
.article-textarea {
  textarea {
    padding-right: 40px;
    resize: none;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #bfcbd9;
  }
}

//element ui upload
.upload-container {
  .el-upload {
    width: 100%;
    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

//dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

//to reset element-ui default css
.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

//暂时性解决 dialog 问题 https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

//element ui upload
.upload-container {
  .el-upload {
    width: 100%;
    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

.el-button {
  // 默认按钮样式
  &.el-button--default {
    &:focus, &:hover {
      background: #fff;
    }
  }
  // 主要按钮样式
  &.el-button--primary {
    background: #507bea;
    border-color: #1f8bfb;
    &:focus, &:hover {
      background: #598eff;
    }
  }
  &.el-button--danger {
    background: #f44;
    border-color: #f44;
    &:focus, &:hover {
      background: #ff4d51;
    }
  }
  // 成功按钮样式
  &.el-button--success {
    background: #47a335;
    border-color: #47a335;
  }
}

.el-pagination {
  text-align: center;
  margin-top: 10px;
}

/* redio 样式 */
label[data-gender='woman'][aria-checked] {
  .el-radio__label {
    color: rgba(253, 6, 93, 0.4);
  }
  .el-radio__inner {
    border-color: rgba(245, 133, 188, 0.2);
    background-color: rgba(253, 6, 93, 0.6);
  }
}

.el-menu-item {
  height: 35px;
  line-height: 35px;
}

/* select 选中的样式 */
.el-select-dropdown__item.selected,
.el-select-dropdown.is-multiple .el-select-dropdown__item.selected {
  background: #507bea;
  color: #fff;
}

.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.hover,
.el-select-dropdown.is-multiple .el-select-dropdown__item.selected:hover {
  background-color: #5991EA;
}

.el-upload {
  border: 1px dashed #c9c7c7;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: center;

  @at-root {
    .uploader__mini & {
      width: 70px;
      height: 70px;
    }

    .uploader__center &:before {
      content: '';
      display: inline-block;
      height: 100%;
      vertical-align: middle;
    }

    .uploader__center & > * {
      display: inline-block;
      vertical-align: middle;
    }
  }
}

.uploader__mini .avatar {
  width: 70px;
  height: 70px;
  display: block;
}

.el-upload:hover {
  border-color: #868484;
}

.avatar-uploader-icon {
  font-size: 28px;
  color: #717984;
}

.el-card.query {
  .el-card__header {
    padding: 10px 20px;
    > div {
      overflow: hidden;
      > span {
        vertical-align: -6px;
      }
    }
  }
}

.el-card__header {
  font-size: 16px;
}